package com.wyt.dao;


import com.wyt.entity.Tpurchase;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import java.util.List;

public interface TpurchaseMapper {
    int deleteByPrimaryKey(Integer pid);

    int insert(Tpurchase record);

    int insertSelective(Tpurchase record);

    Tpurchase selectByPrimaryKey(Integer pid);

    List<Tpurchase> findAllAndCha(@Param("ename") String ename, @Param("pname") String pname,@Param("edate") String edate);

    int updateByPrimaryKeySelective(Tpurchase record);

    int updateByPrimaryKey(Tpurchase record);

    List<Tpurchase> selectAllPurchase(Integer uid);

    List<Tpurchase> selectAllpurchaseCheck(Integer uid);

    List<Tpurchase> selectAllReject(Integer uid);

    //查询所有的仓库组员审核通过采购名单
    List<Tpurchase> findAllPidAndNameCount();

    Integer selectMaxId();
}